package com.server.modules.sys.scheduled;

import com.server.modules.sys.service.im.ImService;
        import org.springframework.scheduling.annotation.Scheduled;
        import org.springframework.stereotype.Component;

        import javax.annotation.Resource;

@Component
public class SyscChatRecordTask {
    @Resource
    private ImService imService;
    @Scheduled(cron = "0 0 0 * * ?") //凌晨12.00执行
    public void taskCycle(){
        imService.synchronizeChatRecordToDbByLastSendTime();
        //imService.getChatRecordFromHx();
    }
}
